using System.Collections.Generic;

public static class IEnumerableExtend
{
    /// <summary>
    /// 合并方法名称进入到参数队列中
    /// </summary>
    /// <param name="cases"></param>
    /// <param name="funcNames"></param>
    /// <returns></returns>
    public static IEnumerable<object[]> MergeFuncNames(this object[][] cases, string[] funcNames)
    {
        List<object[]> results = new List<object[]>();
        for (int i = 0; i < funcNames.Length; i++)
        {
            for (int j = 0; j < cases.Length; j++)
            {
                List<object> objs = new List<object>();
                objs.Add(funcNames[i]);
                for (int z = 0; z < cases[j].Length; z++)
                {
                    objs.Add(cases[j][z]);
                }
                results.Add(objs.ToArray());
            }
        }
        return results;
    }
}
